/**
 * <pre>
 * Title: 		TransMessage.java
 * Project: 	MSWAP
 * Author:		linriqing
 * Create:	 	2012-5-28 上午11:48:25
 * Copyright: 	Copyright (c) 2012
 * Company:		Shenzhen Helper
 * <pre>
 */
package com.hengpeng.msls.port.client.message;

import java.io.Serializable;

import com.hengpeng.itfinbase.constants.RespCodeConstants;
import com.hengpeng.msls.port.client.vo.ResponseCode;
import com.hengpeng.msls.port.client.vo.client.Cacheable;

/**
 * <pre>
 * 客户端消息基类
 * </pre>
 * @author linriqing
 * @version 1.0, 2012-5-28
 */
public class TransMessage implements Serializable, Cacheable
{
	private static final long serialVersionUID = 581402907994182776L;

	private String code = RespCodeConstants.CommonCode.TRANS_SUC;

	private String message = RespCodeConstants.CommonCode.TRANS_SUC_MSG;

	private String domain;

	protected String clientId;

	public static final String SuccessCode = ResponseCode.SUCCESS.getCode();

	/**
	 * 活动标题
	 */
	private String activityTitle;

	/**
	 * 活动
	 */
	private String activityURL;

	/**
	 * 活动编号
	 */
	private Long schemeId;

	public Long getSchemeId()
	{
		return schemeId;
	}

	public void setSchemeId(Long schemeId)
	{
		this.schemeId = schemeId;
	}

	public String getActivityTitle()
	{
		return activityTitle;
	}

	public void setActivityTitle(String activityTitle)
	{
		this.activityTitle = activityTitle;
	}

	public String getActivityURL()
	{
		return activityURL;
	}

	public void setActivityURL(String activityURL)
	{
		this.activityURL = activityURL;
	}

	public String getClientId()
	{
		return clientId;
	}

	/**
	 * @return code
	 */
	public String getCode()
	{
		return code;
	}

	public String getDomain()
	{
		return domain;
	}

	@Override
	public long getExpireInSecond()
	{
		return 300;
	}

	/**
	 * @return message
	 */
	public String getMessage()
	{
		return message;
	}
	public void setClientId(String clientId)
	{
		this.clientId = clientId;
	}

	/**
	 * @param code code
	 */
	public void setCode(String code)
	{
		this.code = code;
	}

	public void setDomain(String domain)
	{
		this.domain = domain;
	}

	/**
	 * @param message message
	 */
	public void setMessage(String message)
	{
		this.message = message;
	}
}
